package com.ea.report.mapper;

import com.ea.common.mybatis.EmoAnalyBaseMapper;
import com.ea.common.report.pojo.vo.StatsWarningDeptVo;
import com.ea.report.pojo.po.StatsWarningType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StatsWarningTypeMapper extends EmoAnalyBaseMapper<StatsWarningType> {
    StatsWarningType selectStatsWarningTypeByDate(
            @Param("startDate") String startDate,
            @Param("endDate") String endDate,
            @Param("companyIdList") List<Long> companyIdList,
            @Param("deptIdList") List<Long> deptIdList
    );

    List<StatsWarningDeptVo> selectStatsWarningDept(
            @Param("startDate") String startDate,
            @Param("endDate") String endDate,
            @Param("companyIdList") List<Long> companyIdList,
            @Param("deptIdList") List<Long> deptIdList
    );

    StatsWarningType selectStatsWarningType(
            @Param("startDate") String startDate,
            @Param("endDate") String endDate,
            @Param("companyIdList") List<Long> companyIdList,
            @Param("deptIdList") List<Long> deptIdList
    );
}
